package com.zxx.yuanze.lod;

import java.util.ArrayList;
import java.util.List;

/**
 * 中介
 *
 * @author zxx on 2020/12/8
 */
public class Mediator {

    List<Room> list = new ArrayList<>();

    public Mediator() {
        for (int i = 0; i < 5; i++) {
            list.add(new Room(14 + i, (14 + i) * 150));
        }
    }

    public List<Room> getAllRooms() {
        return list;
    }


    public void rentOut(Room room) {
        list.remove(room);
    }
}
